package com.newegg.datafeed.adserving.domain;

import com.newegg.datafeed.adserving.model.Account;

/**
 * 后台管理员表
 */
public class Admin extends Account{
	private static final long serialVersionUID = -2446525539114911788L;

	/* 用户名 */
	private String username;

	/* 密码 */
	private String password;

	/* 昵称 */
	private String nickname;

	/* 描述 */
	private String memo;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	@Override
	public String toString() {
		return "{username : " + username + " , password : " + password + " , nickname : " + nickname + " , memo : "
				+ memo + " }";
	}
	
	public String security() {
		String security = "ADMIN:" + this.username;
		this.password = null;
		return security;
	}
}
